<?php switch($content_type){
case 'b_bu': ?>
<dl>
    <dd class="cp-header">
        <?php echo $text_ban_username_intro; ?>
    </dd>
    <form name="ban-form" action="" method="post">
    <dd class="cp-content">
        <ul>
            <li>
                <span class="ban-span"><?php echo $entry_username; ?></span>
                <textarea class="ban-text" style="height:150px;resize:none;" name="ban-usernames"><?php echo $ban_usernames; ?></textarea>
            </li>
            <li>
                <span class="ban-span"><?php echo $entry_ban_length; ?></span>
                <select name="ban-length">
                    <option value="p"><?php echo $text_permanent; ?></option>
                    <option value="30m"><?php echo $text_thirty_minutes; ?></option>
                    <option value="1h"><?php echo $text_one_hour; ?></option>
                    <option value="6h"><?php echo $text_six_hours; ?></option>
                    <option value="1d"><?php echo $text_one_day; ?></option>
                    <option value="7d"><?php echo $text_seven_days; ?></option>
                    <option value="2w"><?php echo $text_two_weeks; ?></option>
                    <option value="1m"><?php echo $text_one_month; ?></option>
                    <option value="u"><?php echo $text_until; ?></option>
                </select>
                <span id="until" style="display:none;">&nbsp;&nbsp;<input class="date" type="text" name="ban-date" value="<?php echo $ban_date; ?>" />&nbsp;(YYYY-MM-DD)</span>
            </li>
            <li>
                <span class="ban-span"><?php echo $entry_ban_reason; ?></span>
                <input class="ban-text" type="text" name="ban-reason" value="<?php echo $ban_reason; ?>" />
            </li>
            <li>
                <span class="ban-span"><?php echo $entry_ban_reason_shown; ?></span>
                <input class="ban-text" type="text" name="ban-reason-shown" value="<?php echo $ban_reason_shown; ?>" />
            </li>
            <?php if($error_banning){ ?>
            <span class="inline_error"><?php echo $error_banning; ?></span>
            <?php } ?>
            <li class="center-up"><input class="input-buttons" type="submit" name="submit" value="<?php echo $button_submit; ?>" onclick="{if(confirm('<?php echo $text_confirm_submit; ?>')){this.document.ban-form.submit();return true;}return false;}"/></li>
        </ul>
    </dd>
    </form>
</dl>
<script type="text/javascript"><!--
$('select[name=\'ban-length\']').live('change', function() {
if (this.value == 'u') {
$('#until').show();
}else {
$('#until').hide();
}
});
//--></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript"><!--
if ($.browser.msie && $.browser.version == 6) {
    $('.date').bgIframe();
}

$('.date').datepicker({dateFormat: 'yy-mm-dd'});
//--></script>
<?php break; ?>
<?php case 'b_bi': ?>
<dl>
    <dd class="cp-header">
        <?php echo $text_ban_ip_intro; ?>
    </dd>
    <form name="ban-form" action="" method="post">
    <dd class="cp-content">
        <ul>
            <li>
                <span class="ban-span"><?php echo $entry_ip; ?></span>
                <textarea class="ban-text" style="height:150px;resize:none;" name="ban-ips"><?php echo $ban_ips; ?></textarea>
            </li>
            <li>
                <span class="ban-span"><?php echo $entry_ban_length; ?></span>
                <select name="ban-length">
                    <option value="p"><?php echo $text_permanent; ?></option>
                    <option value="30m"><?php echo $text_thirty_minutes; ?></option>
                    <option value="1h"><?php echo $text_one_hour; ?></option>
                    <option value="6h"><?php echo $text_six_hours; ?></option>
                    <option value="1d"><?php echo $text_one_day; ?></option>
                    <option value="7d"><?php echo $text_seven_days; ?></option>
                    <option value="2w"><?php echo $text_two_weeks; ?></option>
                    <option value="1m"><?php echo $text_one_month; ?></option>
                    <option value="u"><?php echo $text_until; ?></option>
                </select>
                <span id="until" style="display:none;">&nbsp;&nbsp;<input class="date" type="text" name="ban-date" value="<?php echo $ban_date; ?>" />&nbsp;(YYYY-MM-DD)</span>
            </li>
            <li>
                <span class="ban-span"><?php echo $entry_ban_reason; ?></span>
                <input class="ban-text" type="text" name="ban-reason" value="<?php echo $ban_reason; ?>" />
            </li>
            <li>
                <span class="ban-span"><?php echo $entry_ban_reason_shown; ?></span>
                <input class="ban-text" type="text" name="ban-reason-shown" value="<?php echo $ban_reason_shown; ?>" />
            </li>
            <?php if($error_banning){ ?>
            <span class="inline_error"><?php echo $error_banning; ?></span>
            <?php } ?>
            <li class="center-up"><input class="input-buttons" type="submit" name="submit" value="<?php echo $button_submit; ?>" onclick="{if(confirm('<?php echo $text_confirm_submit; ?>')){this.document.ban-form.submit();return true;}return false;}"/></li>
        </ul>
    </dd>
    </form>
</dl>
<script type="text/javascript"><!--
$('select[name=\'ban-length\']').live('change', function() {
    if (this.value == 'u') {
        $('#until').show();
    }else {
        $('#until').hide();
    }
});
//--></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript"><!--
if ($.browser.msie && $.browser.version == 6) {
    $('.date').bgIframe();
}

$('.date').datepicker({dateFormat: 'yy-mm-dd'});
//--></script>
<?php break; ?>
<?php case 'b_ubu': ?>
<dl>
    <dd class="cp-header">
        <?php echo $text_unban_username_intro; ?>
    </dd>
    <dd class="cp-content">
        <?php if(!$banned_users){ ?>
        <dl>
            <dd><?php echo $text_no_banned_users; ?></dd>
        </dl>
        <?php }else{ ?>
        <form id="unban-users-form" action="" method="post">
        <?php foreach($banned_users as $banned_user){ ?>
        <dl class="cp-list">
            <dd class="cp-list-first cp-list-first-unindent">
                <a href="<?php echo $banned_user['user_profile_link']; ?>"><strong><?php echo $banned_user['username']; ?></strong></a><br />
                <strong><?php echo $text_ban_length; ?></strong><?php echo $banned_user['ban_end_time']; ?>
            </dd>
            <dd class="cp-list-second cp-list-second-expand">
                <strong><?php echo $text_ban_reason; ?></strong><?php echo $banned_user['ban_reason']; ?><br />
                <strong><?php echo $text_ban_reason_shown; ?></strong><?php echo $banned_user['ban_give_reason']; ?><br />
            </dd>
            <dd class="cp-list-third">
                <input type="checkbox" name="marked_b_id[]" value="<?php echo $banned_user['ban_id'] ; ?>" />
            </dd>
        </dl>
        <?php } ?>
        <dl class="cp-list-bottom">
            <dd>
                <input class="input-buttons" type="submit" name="submit" value="<?php echo $button_submit; ?>" onclick="{if(confirm('<?php echo $text_confirm_submit; ?>')){this.document.unban-users-form.submit();return true;}return false;}" />
            </dd>
            <?php if(count($banned_users)>1){ ?>
            <dd>
                &bull; <a href="#" onclick="marklist('unban-users-form', 'marked_b', true); return false;"><?php echo $text_mark_all; ?></a>
                &bull; <a href="#" onclick="marklist('unban-users-form', 'marked_b', false); return false;"><?php echo $text_unmark_all; ?></a>
            </dd>
            <?php } ?>
        </dl>
        <div class="forum-pagination"><?php echo $pagination; ?></div>
        </form>
        <?php } ?>
    </dd>
</dl>
<?php break; ?>
<?php case 'b_ubi': ?>
<dl>
    <dd class="cp-header">
        <?php echo $text_unban_ip_intro; ?>
    </dd>
    <dd class="cp-content">
        <?php if(!$banned_ips){ ?>
        <dl>
            <dd><?php echo $text_no_banned_ips; ?></dd>
        </dl>
        <?php }else{ ?>
        <form id="unban-ips-form" action="" method="post">
        <?php foreach($banned_ips as $banned_ip){ ?>
        <dl class="cp-list">
            <dd class="cp-list-first cp-list-first-unindent">
                <?php echo $banned_ip['ban_ip']; ?><br />
                <strong><?php echo $text_ban_length; ?></strong><?php echo $banned_ip['ban_end_time']; ?>
            </dd>
            <dd class="cp-list-second cp-list-second-expand">
                <strong><?php echo $text_ban_reason; ?></strong><?php echo $banned_ip['ban_reason']; ?><br />
                <strong><?php echo $text_ban_reason_shown; ?></strong><?php echo $banned_ip['ban_give_reason']; ?><br />
            </dd>
            <dd class="cp-list-third">
                <input type="checkbox" name="marked_b_id[]" value="<?php echo $banned_ip['ban_id'] ; ?>" />
            </dd>
        </dl>
        <?php } ?>
        <dl class="cp-list-bottom">
            <dd>
                <input class="input-buttons" type="submit" name="submit" value="<?php echo $button_submit; ?>" onclick="{if(confirm('<?php echo $text_confirm_submit; ?>')){this.document.unban-ips-form.submit();return true;}return false;}" />
            </dd>
            <?php if(count($banned_ips)>1){ ?>
            <dd>
                &bull; <a href="#" onclick="marklist('unban-ips-form', 'marked_b', true); return false;"><?php echo $text_mark_all; ?></a>
                &bull; <a href="#" onclick="marklist('unban-ips-form', 'marked_b', false); return false;"><?php echo $text_unmark_all; ?></a>
            </dd>
            <?php } ?>
        </dl>
        <div class="forum-pagination"><?php echo $pagination; ?></div>
        </form>
        <?php } ?>
    </dd>
</dl>
<?php break; ?>
<?php } ?>